﻿@model IEnumerable<asMeishi.web.Models.food>
@using asMeishi.web.Models

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Edit")
</p>
<table>
    <tr>
        <th></th>
        <th>
            id
        </th>
        <th>
            name
        </th>
        <th>
            intro
        </th>
        <th>
            shopName
        </th>
        <th>
            userId
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Id }) |
            @Html.ActionLink("Detail", "Detail", new { id = item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Id }) |
            @Html.ActionLink("Impression", "Impression", new { id = item.Id }) |

        </td>
        <td>
            @item.Id
        </td>

        <td>
            @item.name
        </td>
        <td>
            @item.intro
        </td>
        <td>
            @item.getShopName()
        </td>
        <td>
            @item.getUserName()

        </td>
    </tr>
}

</table>

